CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(BranchAndBoundTSP)

SET(CMAKE_CXX_FLAGS "-g -O2 -std=c++0x")
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)

FIND_PACKAGE(MPI REQUIRED)

ADD_SUBDIRECTORY(src)

LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/src)

INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH} ${MPI_CXX_INCLUDE_PATH})

ADD_EXECUTABLE(bbTSP src/BB_TSP.cpp)
TARGET_LINK_LIBRARIES(bbTSP tsp ${MPI_CXX_LIBRARIES} ${MPI_LIBRARIES})
